﻿<%@ Page  Title="" Language="C#" 
    MasterPageFile="~/Medianamik/MasterPages/MedianamikModalWindow.Master" 
    AutoEventWireup="true" CodeBehind="ExportResourcesWindow.aspx.cs" 
    Inherits="Medianamik.UI.Web.ModalWindows.ExportResourcesWindow" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderContentHolder" runat="server">
<telerik:RadScriptBlock runat="server" ID="scriptBlock">
	<script type="text/javascript">
        //<![CDATA[
        function GetRadWindow()
        {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function Cancel_Clicked()
        {
            var oWindow = GetRadWindow();
            oWindow.argument = null;
            oWindow.Close();
        }

        function closeWindow(reloadType) {
            var arg = new Object();
            arg.reloadType = reloadType;
            var oWindow = GetRadWindow();
            oWindow.Close(arg);
        }
        //]]>            
	</script>
	</telerik:RadScriptBlock>
	<style type="text/css">
	    fieldset input[type="checkbox"]
	    {
	        cursor:pointer;
	        margin-bottom:1px
	    }
	    fieldset label
	    {
	        cursor:pointer;
	        display:inline;
	        margin-left:5px;
	    }
	</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CenterContent" runat="server">
    <asp:ScriptManager ID="MedianamikScriptManager" EnableHistory="true" EnablePageMethods="true" runat="server"  EnablePartialRendering="true" ScriptMode="Release" />
    <fieldset>
        <div class="Titre12pxBordure" style="padding-right:10px;">
            <div style="float:right;">
                <asp:CheckBox ID="SelectAllBox" runat="server" Text="<%$ Resources : Medianamik_ResourceManagement, SelectAll %>" OnCheckedChanged="SelectAll" AutoPostBack="true" />
            </div>
            <asp:Label runat="server" Text="<%$ Resources : Medianamik_ResourceManagement, ResourceSets %>"></asp:Label>
        </div>
        <asp:CustomValidator runat="server" OnServerValidate="ValidateCheckBoxes" ErrorMessage="Choose"></asp:CustomValidator>
        <asp:CheckBoxList ID="ResourceSets" runat="server" RepeatLayout="Table" Width="100%" RepeatColumns="2"></asp:CheckBoxList>
        <br/>
        <p style="margin-top:1em;">
            <asp:Button ID="btnExportSql" runat="server" OnClick="ExportSql" Text="<%$ Resources: Medianamik_ResourceManagement, ExportSqlResources %>" class="Btn" />&nbsp;
            <asp:Button ID="btnExportToExcel" runat="server" OnClick="btnExportToExcel_OnClick" Text="<%$ Resources: Medianamik_ResourceManagement, ExportExcelResources %>" class="Btn" />&nbsp;
            <input type="button" class="Btn" value="<%=Resources("Medianamik_Global", "Cancel") %>" onclick="Cancel_Clicked();" />
        </p>
    </fieldset>
</asp:Content>
